from xinan_ui.proxy.account_login import AccountLogin
from xinan_ui.proxy.bjs_page.bjs_buy import BjsBuy
from xinan_ui.proxy.bjs_page.enter_bjspage import EnterPage
from xinan_ui.proxy.bjs_page.exit_bjspage import ExitPage
from xinan_ui.proxy.fir1_page import Fir01Page
from xinan_ui.proxy.phone_uilogin import PhoneLoginUi
from xinan_ui.tools.App_driver import AppDriver01
from xinan_ui.tools.read_yml_xn import ReadYaml
from xinan_ui.tools.swipe_pro import SwipeTool
from xinan_ui.tools.ui_read_csv_data import ReadCsv
import time
device_data=ReadYaml('../config/devices.yml').read_yaml()['yeshen_jdz']
md = AppDriver01()
driver = md.get_driver(desired_caps=device_data)
Fir01Page(driver).go_fir_page()
PhoneLoginUi(driver).phone_login('15680036769')
time.sleep(3)
AccountLogin(driver).account_login("181001508", "111111")
SwipeTool(driver).mobile_page_swip()
EnterPage(driver).enter_bjs()